<h2>Ações - <?php echo $camara->name; ?></h2>
<?php include_partial('acao/acaoList', array('acao_list' => $pager->getResults(), 'tp_saida_excel' => 0)) ?>

<?php if ($pager->haveToPaginate()): ?>
<div class="div_center" >
	<div class="pagination">
    <a href="<?php echo url_for('acao/index') ?>?page=1">
      <?php echo image_tag('first.png', 'alt="Primeira página" title="Primeira página"')?>
    </a>
 
    <a href="<?php echo url_for('acao/index') ?>?page=<?php echo $pager->getPreviousPage() ?>">
      <?php echo image_tag('previous.png', 'alt="Voltar" title="Voltar"')?>
    </a>
 
    <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($page == $pager->getPage()): ?>
        <?php echo $page ?>
      <?php else: ?>
        <a href="<?php echo url_for('acao/index') ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
      <?php endif; ?>
    <?php endforeach; ?>
 
    <a href="<?php echo url_for('acao/index') ?>?page=<?php echo $pager->getNextPage() ?>">
      <?php echo image_tag('next.png', 'alt="Próxima" title="Próxima"')?>
    </a>
 
    <a href="<?php echo url_for('acao/index') ?>?page=<?php echo $pager->getLastPage() ?>">
      <?php echo image_tag('last.png', 'alt="Última página" title="Última página"')?>
    </a>
	</div>
</div>
<?php endif; ?>

<br />
<?php include_partial('acao/legendaAcoes') ?> 

<p><?php echo button_to('Nova','acao/new','class="btn"') ?> 
<a href="<?php echo url_for($sf_user->getAttribute('show_acoes_page',null,'usr')) ?>" class="link_btn">Voltar</a>
